// Copyright 2017 Baidu Inc. All Rights Reserved.
// Author: Chen Xihao (chenxihao@baidu.com)
//
// Description: play http live stream

#ifndef BAIDU_IOT_TINYDU_IOT_OS_SRC_MEDIA_DATA_MANAGER_HLS_BAIDU_HLS_H
#define BAIDU_IOT_TINYDU_IOT_OS_SRC_MEDIA_DATA_MANAGER_HLS_BAIDU_HLS_H

#ifdef __cplusplus
extern "C" {
#endif

#define HLS_SUCCESS          0 // No error
#define HLS_FAILED          -1 // Unspecified error
#define HLS_NOMEMORY        -2 // Not enough memory

int start_hls(const char* url);

int stop_hls(void);

#ifdef __cplusplus
}
#endif

#endif // BAIDU_IOT_TINYDU_IOT_OS_SRC_MEDIA_DATA_MANAGER_HLS_BAIDU_HLS_H
